package cn.bdqn.service.impl;

import cn.bdqn.domain.Room;
import cn.bdqn.mapper.FloorMapper;
import cn.bdqn.mapper.RoomMapper;
import cn.bdqn.service.RoomService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoomServiceImpl implements RoomService {

    @Resource
    private RoomMapper roomMapper;

    @Override
    public List<Room> queryByFloorId(Integer floorId) {
        return roomMapper.selectByFloorId(floorId);
    }
}
